//
//  CollectionCell.m
//  日历学习
//
//  Created by fly on 16/8/11.
//  Copyright © 2016年 fly. All rights reserved.
//

#import "CollectionCell.h"
#define kWidth [UIScreen mainScreen].bounds.size.width
#define kHeight [UIScreen mainScreen].bounds.size.height

@implementation CollectionCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.lable = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, (kWidth - 24 - 5*8)/7, (kWidth - 24 - 5*8)/7)];
        self.lable.font = [UIFont systemFontOfSize:20];
        self.lable.textAlignment  = NSTextAlignmentCenter;
        [self addSubview:self.lable];
        
        UIImageView *imageV = [[UIImageView alloc]init];
        [self.contentView addSubview:imageV];
        _imageV = imageV;
//        imageV.image = [UIImage imageNamed:@"vkFootprint"];
        [imageV mas_makeConstraints:^(MASConstraintMaker *make) {
            make.center.equalTo(self.contentView);
            make.height.width.equalTo(@35);
        }];

    }
    return self;
}

@end
